<template>
  <div>
    <div class="add_btn_top">
      <el-radio-group v-model="cameraFlag" size="small">
        <el-radio-button label="预览"></el-radio-button>
        <el-radio-button label="回放"></el-radio-button>
      </el-radio-group>
    </div>
    <CameraPreview
      v-if="cameraFlag == '预览'"
      :cameraFlag="cameraFlag"
    ></CameraPreview>
    <CameraPlayback v-else :cameraFlag="cameraFlag"></CameraPlayback>
  </div>
</template>

<script>
import CameraPreview from "./CameraPreview.vue";
import CameraPlayback from "./CameraPlayback.vue";
export default {
  components: {
    CameraPreview,
    CameraPlayback
  },
  data() {
    return {
      cameraFlag: "预览"
    };
  },
  methods: {
    checkFlag() {}
  }
};
</script>

<style></style>
